package xyz.zhzby.cyzx.judge.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import xyz.zhzby.cyzx.judge.domain.DataLogInfo;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 测试点
 * </p>
 *
 * @author zby
 * @since 2022-02-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("oj_checkpoint")
@ApiModel(value = "Checkpoint对象", description = "测试点")
public class Checkpoint extends DataLogInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "试题ID")
    @TableField("problem_id")
    private Long problemId;

    @ApiModelProperty(value = "测试点序号")
    @TableField("number")
    private Integer number;

    @ApiModelProperty(value = "测试点分值")
    @TableField("score")
    private Integer score;

    @ApiModelProperty(value = "标准输入")
    @TableField("input")
    private String input;

    @ApiModelProperty(value = "标准输出")
    @TableField("output")
    private String output;

}
